package com.dingreading.cloud.mall.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.dingreading.cloud.common.util.PageDto;
import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.mall.entity.Corporations;
import com.dingreading.cloud.mall.entity.table.CorporationsTableDef;
import com.dingreading.cloud.mall.mapper.CorporationsMapper;
import com.dingreading.cloud.mall.service.CorporationsService;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryCondition;
import com.mybatisflex.core.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Service
public class CorporationsServiceImpl extends BaseServiceImpl<CorporationsMapper, Corporations, CorporationsTableDef> implements CorporationsService {

    @Override
    protected CorporationsTableDef getTable() {
        return CorporationsTableDef.corporations;
    }


    @Override
    public Corporations getByUid(String uid) {
        return getMapper().selectOneByCondition(table.uid.eq(uid));
    }

}
